import request from '../../utils/request';

// 全文搜索相关 API

// GET方式搜索
export const searchByGet = (params: any) => {
    return request({
        url: '/product/api/all-search/search',
        method: 'get',
        params
    });
};

// 全文搜索
export const fullTextSearch = (data: any) => {
    return request({
        url: '/product/api/all-search/search',
        method: 'post',
        data
    });
};
